package com.spittr.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.spittr.exceptions.ArgumentsIllegaleException;

@Controller
public class HomeController {
	
	@RequestMapping(value = "/home.do")
	public String home() {
		return "home";
	}
	
	@RequestMapping(value = "/form.do")
	@ResponseBody
	public String validationParams(LoginUser loginUser,MultipartFile imgFile){
		throw new ArgumentsIllegaleException();
//		return "home";
	}
	
}
